#include "StdAfx.h"
#include "StateStack.h"
#include "StateWelcome.h"
#include "StateMainMenu.h"

StateWelcome::StateWelcome(void)
{
}

StateWelcome::~StateWelcome(void)
{
}

void StateWelcome::Update (float deltaTime)
{
	m_background.Update(deltaTime);

	static float count = 0;
	count += deltaTime;

	if (count >= 1.0f)
	{
		StateMainMenu* state = new StateMainMenu();
		GetStateStack()->SetState(state);
	}
}

void StateWelcome::Render ()
{
	m_background.Render();
}

void StateWelcome::OnEnter ()
{
	m_background.Init("../Resources/Textures/WelcomeScreen.tga");
}

void StateWelcome::OnExit()
{
}